package com.xiaozhengkeji.xiaozhengblog.base.mapper;

import com.xiaozhengkeji.xiaozhengblog.base.entitys.ArticleEntity;
import java.time.LocalDateTime;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface ArticleEntityMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(ArticleEntity record);

    int insertSelective(ArticleEntity record);

    ArticleEntity selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(ArticleEntity record);

    int updateByPrimaryKey(ArticleEntity record);

    List<ArticleEntity> queryByAll(ArticleEntity articleEntity);

    List<ArticleEntity> queryByArticleStatus(@Param("articleStatus") Integer articleStatus);

    List<ArticleEntity> queryByArticleClass(@Param("articleClass") Integer articleClass);

    List<ArticleEntity> queryByArticleClassAndArticleStatus(@Param("articleClass") Integer articleClass, @Param("articleStatus") Integer articleStatus);

    List<ArticleEntity> queryByArticleTags(@Param("articleTags") String articleTags);

    List<ArticleEntity> queryByArticleTagsAndArticleStatus(@Param("articleTags") String articleTags, @Param("articleStatus") Integer articleStatus);
}